package com.hdoit.ares.logical.policy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.ares.logical.policy.model.ListPolicy;
import com.tennetcn.common.dao.base.IMapper;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年01月18日 00:52:51
 * @comment
 */
@Repository(value="listPolicyMapper")
public interface ListPolicyMapper extends IMapper<ListPolicy>{
	
	public List<ListPolicy> queryAllAccidentPolicy(String customerId);
	
	public List<ListPolicy> queryAllCarPolicy(String customerId);
	
	public ListPolicy queryFanhuaAccident(@Param("customerId") String customerId, @Param("oid") String oid);
	
	public ListPolicy queryZhonganAccident(@Param("customerId") String customerId, @Param("oid") String oid);
	
	public ListPolicy queryFanhuaAccidentDetail(String oid);
	
	public ListPolicy queryZhonganAccidentDetail(String oid);
	
	public ListPolicy queryFanhuaCarDetail(String oid);
	
	public ListPolicy queryZhonganCarDetail(String oid);
	
	//查询用户本周出单数
	public int queryCountWeekPolicys(String customerId);
	
	//查询用户本月出单数
	public int queryCountMonthPolicys(String customerId);
}